// 联合类型
type ID = number | string
const ids1: ID = '123'
const ids2: ID = 123

// 交叉类型: 两种（多种）类型要同时满足
type NewType = number & string

interface IKun {
  name: string,
  age: string
}

interface ICoder {
  name: string,
  coding: () => void
}

const info: IKun & ICoder = {
  name: 'why',
  age: '16',
  coding() {
    console.log('coding')
  }
}

export {}